import http from "../../utils/http"
interface courierItem{
    name?:string
    _id?:string
    avatar?:string
    phone?:string
    state?:number
}
const courierManage = {
    // 查询用户分组数据
    // search: (data?: object) => http.post('/userGroups/search', data),
    search:function(data?: object){
        return  http.get('/couriers/getAll', data)
    },
    // 新增用户分组数据
    add: (data: object) => http.post('/couriers/add', data),
    // 删除用户分组数据
    remove: (data: object) => http.delete('/couriers/remove', data),
    // 修改用户分组数据
    update: (data: object) => http.put('/couriers/update ', data)
}

export default courierManage